﻿using Abp.Runtime.Validation;
using Camc.Quality.Dto;
using System;
using System.Collections.Generic;
using System.Text;

namespace Camc.Quality.BomChange.Dto
{
    /// <summary>
    /// 查询主表格信息相关条件
    /// </summary>
   public class BomChangeContentSearchDto: PagedAndSortedInputDto, IShouldNormalize
    {
        /// <summary>
        /// 物料代码
        /// </summary>
        public string MaterialNo { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string Model { get; set; }
        /// <summary>
        /// 发次
        /// </summary>
        public string SendTime { get; set; } 
        /// <summary>
        /// 状态
        /// </summary>
        public int Status { get; set; }
        public void Normalize()
        {
            if (string.IsNullOrEmpty(Sorting))
            {
                Sorting = "CreationTime Desc";
            }
        }
    }
}
